package demo.TestConterller;









import com.jfinal.core.Controller;

import com.jfinal.upload.UploadFile;


public class TestUpdate extends Controller {
	public void index(){
		setSessionAttr(getPara(), getAttrNames());
		renderJsp("update.jsp");
	}
	public void update(){
		
		
        UploadFile file = getFile();
       
        String fileName = file.getFileName();
        //String filexx file.getUploadPath();
       // String extension = fileName.substring(fileName.lastIndexOf("."));
        System.out.println(fileName+file.getUploadPath());
       
     
       
		renderJsp("upfile.jsp");
	}

}
